from django import forms
from .models import Post
from django.utils.translation import ugettext_lazy as _


class PostForm(forms.ModelForm):
	class Meta:
		model = Post
		fields = ("name", "category", "price", "image", "description")
		labels = {
			'name':_('物品名称'),
			'price':_('价格'),
			'category':_('类别'),
			'image':_('实物图片'),
			'description':_('描述你的物品'),
		}


